package com.yb.designpattern.action.observer;

public class Client {
	public static void main(String[] args) {
		ConcreteSubject subject = new ConcreteSubject();
		Observer observer1 = new Observer1();
		Observer observer2 = new Observer2();
		subject.registObserver(observer1);
		subject.registObserver(observer2);
		subject.change(2);
	}
}
